package com.jeez.module.sys.entity;

import com.jeez.common.entity.DataEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author: Felix
 * @date: 2018-7-1
 * @version: v1.0
 * @description:
 */
@Entity
@Table(name = "t_sys_module")
@Getter
@Setter
public class SysModule extends DataEntity<SysModule> {

    @Basic
    @Column(name = "name", nullable = true, insertable = true, updatable = true, length = 20)
    private String name; //系统名称

    @Basic
    @Column(name = "title", nullable = true, insertable = true, updatable = true, length = 20)
    private String title; //系统标题


    @Basic
    @Column(name = "icon", nullable = true, insertable = true, updatable = true, length = 50)
    private String icon;  //图标


    @Basic
    @Column(name = "banner", nullable = true, insertable = true, updatable = true, length = 150)
    private String banner; //背景


    @Basic
    @Column(name = "theme", nullable = true, insertable = true, updatable = true, length = 50)
    private String theme; //主题


    @Basic
    @Column(name = "basepath", nullable = true, insertable = true, updatable = true, length = 100)
    private String basepath; //根目录

    @Basic
    @Column(name = "status", nullable = true, insertable = true, updatable = true)
    private Byte status; //状态(-1:黑名单,1:正常)


    @Basic
    @Column(name = "description", nullable = true, insertable = true, updatable = true, length = 300)
    private String description; //系统描述

    @Basic
    @Column(name = "order_num", nullable = true, insertable = true, updatable = true)
    private Long orderNum; //排序ID


    @Basic
    @Column(name = "remark", nullable = true, insertable = true, updatable = true, length = 400)
    private String remark; //备注



}
